home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / DesktopAnimServer.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  12KB  |  324 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: DesktopAnimServer.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_DesktopAnimServer_h
  11. #define SOM_DesktopAnimServer_h
  12.  
  13.  
  14. /*
  15.  * Passthru lines: File: "C.h", "before"
  16.  */
  17. #include <DesktopAnimPanel.h>
  18. #include <DesktopAnimDraw.h>
  19. #include <FileManagerTypes.h>
  20.  
  21. #include <som.h>
  22.  
  23. /*
  24.  * -- This emitter treats Method Tokens as Thunks by default.
  25.  * -- Use the sc modifier "nothunks" to change this default
  26.  */
  27. #undef somresolve_
  28. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  29.  
  30. /*
  31.  * Define the class name as an object type
  32.  */
  33. #ifndef DesktopAnimServer
  34. #define DesktopAnimServer SOMObject
  35. #endif
  36. #include <somobj.h>
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. #ifndef SOMClass
  42.     #define SOMClass SOMObject
  43. #endif /* SOMClass */
  44. #ifndef SOMObject
  45.     #define SOMObject SOMObject
  46. #endif /* SOMObject */
  47. #ifndef Repository
  48.     #define Repository SOMObject
  49. #endif /* Repository */
  50.  
  51. /*
  52.  * End of user-defined types.
  53.  */
  54.  
  55. #define DesktopAnimServer_MajorVersion 0
  56. #define DesktopAnimServer_MinorVersion 0
  57.  
  58. /*
  59.  * External name shortening if required
  60.  */
  61. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  62. #define DesktopAnimServerClassData d
  63. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  64. /*--------------Migration------------*/
  65.  
  66. #ifdef OLDIBMSOMAPISUPPORT
  67. #define DesktopAnimServer_classObj somNewClassReference(DesktopAnimServer)
  68. #define _DesktopAnimServer DesktopAnimServer_classObj
  69. #define DesktopAnimServerCClassData DesktopAnimServerClassData
  70. #define DesktopAnimServerNewClass(major,minor) somNewVersionedClassReference(DesktopAnimServer,major,minor)
  71. #endif
  72.  
  73. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  74. #define DesktopAnimServerMetaClass SOMClass
  75.  
  76. #if PRAGMA_ALIGN_SUPPORTED
  77. #  pragma options align=power
  78. #endif
  79.  
  80. /*
  81.  * Declare the class data structure
  82.  */
  83. SOMEXTERN struct DesktopAnimServerClassDataStructure {
  84. #ifdef OLDIBMSOMAPISUPPORT
  85.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  86. #else
  87.     long zero;
  88. #endif
  89.     somStaticClassInfo *sci;
  90.     somDToken        instanceDataToken;
  91.     long reserved [3];
  92.     somDToken fRefNum;
  93.     somDToken fDesktopModuleList;
  94.     somMToken _get_fRefNum;
  95.     somMToken _get_fDesktopModuleList;
  96.     somMToken Initialize;
  97.     somMToken Close;
  98.     somMToken CountModules;
  99.     somMToken GetDesktopAnimDraw;
  100.     somMToken GetDesktopAnimPanel;
  101.     somMToken GetModulesFile;
  102.     somMToken GetModuleDescription;
  103.     somMToken unused0;
  104. } SOMDLINK DesktopAnimServerClassData;
  105.  
  106. #if PRAGMA_ALIGN_SUPPORTED
  107. #  pragma options align=reset
  108. #endif
  109.  
  110. #if !defined(DesktopAnimServer_Class_Source) && !defined(SOM_Module_desktopanimserver_Source)
  111. #if PRAGMA_IMPORT_SUPPORTED
  112. #pragma import list DesktopAnimServerClassData
  113. #endif
  114. #endif
  115.  
  116.  
  117. /*
  118.  * New macro for DesktopAnimServer
  119.  */
  120. #define DesktopAnimServerNew() somNewObject(DesktopAnimServer)
  121.  
  122. /*
  123.  * New Method: Initialize
  124.  */
  125. typedef OSStatus   (SOMLINK *somTD_DesktopAnimServer_Initialize)(DesktopAnimServer *somSelf, Environment *ev,
  126.         FSObjectRef moduleFileRef,
  127.         SInt16 refNum,
  128.         DesktopAnimModuleListRsrcHandle modulesList);
  129. #define somMD_DesktopAnimServer_Initialize "::DesktopAnimServer::Initialize"
  130. #define DesktopAnimServer_Initialize(somSelf,ev,moduleFileRef,refNum,modulesList) \
  131.     (SOM_Resolve(somSelf, DesktopAnimServer, Initialize) \
  132.     (somSelf,ev,moduleFileRef,refNum,modulesList))
  133. #ifndef SOMGD_Initialize
  134.     #if defined _Initialize || defined __Initialize
  135.         #undef _Initialize
  136.         #undef __Initialize
  137.         #define SOMGD_Initialize 1
  138.     #else
  139.         #define _Initialize DesktopAnimServer_Initialize
  140.     #endif /* _Initialize */
  141. #endif /* SOMGD_Initialize */
  142.  
  143. /*
  144.  * New Method: Close
  145.  */
  146. typedef OSStatus   (SOMLINK *somTD_DesktopAnimServer_Close)(DesktopAnimServer *somSelf, Environment *ev);
  147. #define somMD_DesktopAnimServer_Close "::DesktopAnimServer::Close"
  148. #define DesktopAnimServer_Close(somSelf,ev) \
  149.     (SOM_Resolve(somSelf, DesktopAnimServer, Close) \
  150.     (somSelf,ev))
  151. #ifndef SOMGD_Close
  152.     #if defined _Close || defined __Close
  153.         #undef _Close
  154.         #undef __Close
  155.         #define SOMGD_Close 1
  156.     #else
  157.         #define _Close DesktopAnimServer_Close
  158.     #endif /* _Close */
  159. #endif /* SOMGD_Close */
  160.  
  161. /*
  162.  * New Method: CountModules
  163.  */
  164. typedef void   (SOMLINK *somTD_DesktopAnimServer_CountModules)(DesktopAnimServer *somSelf, Environment *ev,
  165.         DesktopAnimFlags desktopAnimFlags,
  166.         SInt32* modulesCnt);
  167. #define somMD_DesktopAnimServer_CountModules "::DesktopAnimServer::CountModules"
  168. #define DesktopAnimServer_CountModules(somSelf,ev,desktopAnimFlags,modulesCnt) \
  169.     (SOM_Resolve(somSelf, DesktopAnimServer, CountModules) \
  170.     (somSelf,ev,desktopAnimFlags,modulesCnt))
  171. #ifndef SOMGD_CountModules
  172.     #if defined _CountModules || defined __CountModules
  173.         #undef _CountModules
  174.         #undef __CountModules
  175.         #define SOMGD_CountModules 1
  176.     #else
  177.         #define _CountModules DesktopAnimServer_CountModules
  178.     #endif /* _CountModules */
  179. #endif /* SOMGD_CountModules */
  180.  
  181. /*
  182.  * New Method: GetDesktopAnimDraw
  183.  */
  184. typedef OSStatus   (SOMLINK *somTD_DesktopAnimServer_GetDesktopAnimDraw)(DesktopAnimServer *somSelf, Environment *ev,
  185.         AVIDType prefsDisplayID,
  186.         DesktopAnimModuleDescRef moduleDescRef,
  187.         DesktopAnimModuleInfo* moduleInfo,
  188.         DesktopAnimDraw** desktopAnimDraw);
  189. #define somMD_DesktopAnimServer_GetDesktopAnimDraw "::DesktopAnimServer::GetDesktopAnimDraw"
  190. #define DesktopAnimServer_GetDesktopAnimDraw(somSelf,ev,prefsDisplayID,moduleDescRef,moduleInfo,desktopAnimDraw) \
  191.     (SOM_Resolve(somSelf, DesktopAnimServer, GetDesktopAnimDraw) \
  192.     (somSelf,ev,prefsDisplayID,moduleDescRef,moduleInfo,desktopAnimDraw))
  193. #ifndef SOMGD_GetDesktopAnimDraw
  194.     #if defined _GetDesktopAnimDraw || defined __GetDesktopAnimDraw
  195.         #undef _GetDesktopAnimDraw
  196.         #undef __GetDesktopAnimDraw
  197.         #define SOMGD_GetDesktopAnimDraw 1
  198.     #else
  199.         #define _GetDesktopAnimDraw DesktopAnimServer_GetDesktopAnimDraw
  200.     #endif /* _GetDesktopAnimDraw */
  201. #endif /* SOMGD_GetDesktopAnimDraw */
  202.  
  203. /*
  204.  * New Method: GetDesktopAnimPanel
  205.  */
  206. typedef OSStatus   (SOMLINK *somTD_DesktopAnimServer_GetDesktopAnimPanel)(DesktopAnimServer *somSelf, Environment *ev,
  207.         AVIDType prefsDisplayID,
  208.         DesktopAnimModuleDescRef moduleDescRef,
  209.         DesktopAnimModuleInfo* moduleInfo,
  210.         DesktopAnimPanel** desktopAnimPanel);
  211. #define somMD_DesktopAnimServer_GetDesktopAnimPanel "::DesktopAnimServer::GetDesktopAnimPanel"
  212. #define DesktopAnimServer_GetDesktopAnimPanel(somSelf,ev,prefsDisplayID,moduleDescRef,moduleInfo,desktopAnimPanel) \
  213.     (SOM_Resolve(somSelf, DesktopAnimServer, GetDesktopAnimPanel) \
  214.     (somSelf,ev,prefsDisplayID,moduleDescRef,moduleInfo,desktopAnimPanel))
  215. #ifndef SOMGD_GetDesktopAnimPanel
  216.     #if defined _GetDesktopAnimPanel || defined __GetDesktopAnimPanel
  217.         #undef _GetDesktopAnimPanel
  218.         #undef __GetDesktopAnimPanel
  219.         #define SOMGD_GetDesktopAnimPanel 1
  220.     #else
  221.         #define _GetDesktopAnimPanel DesktopAnimServer_GetDesktopAnimPanel
  222.     #endif /* _GetDesktopAnimPanel */
  223. #endif /* SOMGD_GetDesktopAnimPanel */
  224.  
  225. /*
  226.  * New Method: GetModulesFile
  227.  */
  228. typedef OSStatus   (SOMLINK *somTD_DesktopAnimServer_GetModulesFile)(DesktopAnimServer *somSelf, Environment *ev,
  229.         FSObjectRef* modulesFileRef);
  230. #define somMD_DesktopAnimServer_GetModulesFile "::DesktopAnimServer::GetModulesFile"
  231. #define DesktopAnimServer_GetModulesFile(somSelf,ev,modulesFileRef) \
  232.     (SOM_Resolve(somSelf, DesktopAnimServer, GetModulesFile) \
  233.     (somSelf,ev,modulesFileRef))
  234. #ifndef SOMGD_GetModulesFile
  235.     #if defined _GetModulesFile || defined __GetModulesFile
  236.         #undef _GetModulesFile
  237.         #undef __GetModulesFile
  238.         #define SOMGD_GetModulesFile 1
  239.     #else
  240.         #define _GetModulesFile DesktopAnimServer_GetModulesFile
  241.     #endif /* _GetModulesFile */
  242. #endif /* SOMGD_GetModulesFile */
  243.  
  244. /*
  245.  * New Method: GetModuleDescription
  246.  */
  247. typedef OSStatus   (SOMLINK *somTD_DesktopAnimServer_GetModuleDescription)(DesktopAnimServer *somSelf, Environment *ev,
  248.         SInt32 index,
  249.         DesktopAnimModuleInfo* moduleInfo,
  250.         DesktopAnimModuleDescRef* moduleDescRef);
  251. #define somMD_DesktopAnimServer_GetModuleDescription "::DesktopAnimServer::GetModuleDescription"
  252. #define DesktopAnimServer_GetModuleDescription(somSelf,ev,index,moduleInfo,moduleDescRef) \
  253.     (SOM_Resolve(somSelf, DesktopAnimServer, GetModuleDescription) \
  254.     (somSelf,ev,index,moduleInfo,moduleDescRef))
  255. #ifndef SOMGD_GetModuleDescription
  256.     #if defined _GetModuleDescription || defined __GetModuleDescription
  257.         #undef _GetModuleDescription
  258.         #undef __GetModuleDescription
  259.         #define SOMGD_GetModuleDescription 1
  260.     #else
  261.         #define _GetModuleDescription DesktopAnimServer_GetModuleDescription
  262.     #endif /* _GetModuleDescription */
  263. #endif /* SOMGD_GetModuleDescription */
  264.  
  265. /*
  266.  * New Method: _get_fDesktopModuleList
  267.  */
  268. typedef DesktopAnimModuleListRsrcHandle   (SOMLINK *somTD_DesktopAnimServer__get_fDesktopModuleList)(DesktopAnimServer *somSelf, Environment *ev);
  269. #define somMD_DesktopAnimServer__get_fDesktopModuleList "::DesktopAnimServer::fDesktopModuleList"
  270. #define DesktopAnimServer__get_fDesktopModuleList(somSelf,ev) \
  271.     (SOM_Resolve(somSelf, DesktopAnimServer, _get_fDesktopModuleList) \
  272.     (somSelf,ev))
  273. #ifndef SOMGD_get_fDesktopModuleList
  274.     #if defined _get_fDesktopModuleList || defined __get_fDesktopModuleList
  275.         #undef _get_fDesktopModuleList
  276.         #undef __get_fDesktopModuleList
  277.         #define SOMGD_get_fDesktopModuleList 1
  278.     #else
  279.         #define __get_fDesktopModuleList DesktopAnimServer__get_fDesktopModuleList
  280.     #endif /* __get_fDesktopModuleList */
  281. #endif /* SOMGD_get_fDesktopModuleList */
  282.  
  283. /*
  284.  * New Method: _get_fRefNum
  285.  */
  286. typedef SInt16   (SOMLINK *somTD_DesktopAnimServer__get_fRefNum)(DesktopAnimServer *somSelf, Environment *ev);
  287. #define somMD_DesktopAnimServer__get_fRefNum "::DesktopAnimServer::fRefNum"
  288. #define DesktopAnimServer__get_fRefNum(somSelf,ev) \
  289.     (SOM_Resolve(somSelf, DesktopAnimServer, _get_fRefNum) \
  290.     (somSelf,ev))
  291. #ifndef SOMGD_get_fRefNum
  292.     #if defined _get_fRefNum || defined __get_fRefNum
  293.         #undef _get_fRefNum
  294.         #undef __get_fRefNum
  295.         #define SOMGD_get_fRefNum 1
  296.     #else
  297.         #define __get_fRefNum DesktopAnimServer__get_fRefNum
  298.     #endif /* __get_fRefNum */
  299. #endif /* SOMGD_get_fRefNum */
  300. #ifndef SOM_DONT_USE_INHERITED_MACROS
  301. #define DesktopAnimServer_somInit SOMObject_somInit
  302. #define DesktopAnimServer_somUninit SOMObject_somUninit
  303. #define DesktopAnimServer_somDuplicateReference SOMObject_somDuplicateReference
  304. #define DesktopAnimServer_somCompareReference SOMObject_somCompareReference
  305. #define DesktopAnimServer_somRelease SOMObject_somRelease
  306. #define DesktopAnimServer_somFree SOMObject_somFree
  307. #define DesktopAnimServer_somCanDelete SOMObject_somCanDelete
  308. #define DesktopAnimServer_somGetClass SOMObject_somGetClass
  309. #define DesktopAnimServer_somGetClassName SOMObject_somGetClassName
  310. #define DesktopAnimServer_somGetSize SOMObject_somGetSize
  311. #define DesktopAnimServer_somIsA SOMObject_somIsA
  312. #define DesktopAnimServer_somRespondsTo SOMObject_somRespondsTo
  313. #define DesktopAnimServer_somIsInstanceOf SOMObject_somIsInstanceOf
  314. #define DesktopAnimServer_somDispatch SOMObject_somDispatch
  315. #define DesktopAnimServer_somClassDispatch SOMObject_somClassDispatch
  316. #define DesktopAnimServer_somCastObj SOMObject_somCastObj
  317. #define DesktopAnimServer_somResetObj SOMObject_somResetObj
  318. #define DesktopAnimServer_somPrintSelf SOMObject_somPrintSelf
  319. #define DesktopAnimServer_somDumpSelf SOMObject_somDumpSelf
  320. #define DesktopAnimServer_somDumpSelfInt SOMObject_somDumpSelfInt
  321. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  322.  
  323. #endif       /* SOM_DesktopAnimServer_h */
  324.